/*
 * 文件名：AlarmDataEntity.java
 * 版权：Copyright by www.tiansu-china.com/
 * 描述：
 * 修改人：congriran
 * 修改时间：2020年12月18日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
*/

package com.tiansu.reborn.wanda.modules.executor.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;

import com.baomidou.mybatisplus.annotation.TableField;

public class AlarmDataEntity implements Serializable
{
    private static final long serialVersionUID = -3804109073038343622L;
    public String alarmId;
    public String plazaName;
    public String brandName;
    public String bunkName;
    public String deviceName;
    public String deviceNo;
    public String alarmTypeName;
    public String alarmContent;
    public String status;
    private Timestamp alarmTime;
    @TableField(exist = false)
    public String alarmTimeStr;

    public String getAlarmId()
    {
        return alarmId;
    }

    public void setAlarmId(String alarmId)
    {
        this.alarmId = alarmId;
    }

    public String getPlazaName()
    {
        return plazaName;
    }

    public void setPlazaName(String plazaName)
    {
        this.plazaName = null == plazaName ? "" : plazaName;
    }

    public String getBrandName()
    {
        return brandName;
    }

    public void setBrandName(String brandName)
    {
        this.brandName = null == brandName ? "" : brandName;
    }

    public String getBunkName()
    {
        return bunkName;
    }

    public void setBunkName(String bunkName)
    {
        this.bunkName = null == bunkName ? "" : bunkName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }

    public void setDeviceName(String deviceName)
    {
        this.deviceName = null == deviceName ? "" : deviceName;
    }

    public String getDeviceNo()
    {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo)
    {
        this.deviceNo = null == deviceNo ? "" : deviceNo;
    }

    public String getAlarmTypeName()
    {
        return alarmTypeName;
    }

    public void setAlarmTypeName(String alarmTypeName)
    {
        this.alarmTypeName = alarmTypeName;
    }

    public String getAlarmContent()
    {
        return alarmContent;
    }

    public void setAlarmContent(String alarmContent)
    {
        this.alarmContent = null == alarmContent ? "" : alarmContent;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public Timestamp getAlarmTime()
    {
        return alarmTime;
    }

    public void setAlarmTime(Timestamp alarmTime)
    {
        this.alarmTime = alarmTime;
    }

    public String getAlarmTimeStr()
    {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.alarmTime);
    }

    public void setAlarmTimeStr(String alarmTimeStr)
    {
        this.alarmTimeStr = alarmTimeStr;
    }

    @Override
    public String toString()
    {
        return "AlarmDataEntity [alarmId=" + alarmId + ", plazaName=" + plazaName + ", brandName=" + brandName
                + ", bunkName=" + bunkName + ", deviceName=" + deviceName + ", deviceNo=" + deviceNo
                + ", alarmType_name=" + alarmTypeName + ", alarmContent=" + alarmContent + ", status=" + status
                + ", alarmTime=" + alarmTime + ", alarmTimeStr=" + alarmTimeStr + "]";
    }

}
